import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/search`,
  exportUrl: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/search`,
  delUrl: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/deleteByIds`,
}

// 查询列表
export function queryExpandConfInfoList(query) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/search`,
    method: 'post',
    data: query
  })
}

// 新增
export function addExpandConfInfo(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/save`,
    method: 'post',
    data: data
  })
}

// 删除
export function removeExpandConfInfo(ids) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/deleteByIds?ids=` + ids,
    method: 'delete'
  })
}

// 根据id查询
export function findExpandConfInfoById(id) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/findExpandConfInfoById?id=`+id,
    method: 'get',
  })
}

// 校验参数code
export function checkParamCode(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/expandConfInfo/checkParamCode`,
    method: 'get',
    params:data
  })
}

